package org.apache.servicecomb.samples.practise.houserush.sale.rpc;

import org.apache.servicecomb.samples.practise.houserush.sale.rpc.po.House;
import org.apache.servicecomb.samples.practise.houserush.sale.rpc.po.Realestate;

import java.util.List;

public interface RealestateApi {

    //根据id查询楼盘
    Realestate findRealestate(int id);
    //根据id查询房源
    House findHouse(int id);
    //锁定房源
    List<House> lockHousesForSale(List<Integer> ids);
    //解锁房源
    int updateReleaseLockingStatesForHouses(List<Integer> ids);
}
